<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>开始测试</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">
	<script type="text/javascript" src="__JS__/jshelper.js"></script> 
	<script type="text/javascript" src="__JS__/jQuery/jquery.js"></script>
    <script type="text/javascript" src="__JS__/jQuery/jquery.form.js"></script>
    <!--  
<script   type= "text/javascript"> 
	function   subform(gourl){   
 	 var   gourl; 
  	form2.action=gourl; 
  	form2.submit(); 
	} 
</script> 
	<script type="text/JavaScript">
       $(function(){
           $('#form2').ajaxForm({
               //beforeSubmit:  function(){alert("before");},  // pre-submit callback
               success:       complete,  // post-submit callback
               error:function(){alert("error");},
               dataType: 'json'
           });
           
           function complete(data){
               if (data.status==1)
               {
               	window.location='__URL__/blanktdetail2/id/<?php echo ($testid); ?>';
               }else{
                   $('#result').html(data.info).show();
               }
           }
       });
       </script>-->
</head>

<body>
		<!-- layout::Auth:header::0 -->
    		<div class="container-fluid">
     			<div class="row-fluid">
        			<!-- layout::Auth:leftmenu::0 -->
                    	<div class="span8">
                          <div class="hero-unit">
                            <h1>开始测试</h1>
                            <p style="font-size:12px">当前位置：
                                <a href='__APP__/index/index' class="nowpositionhref">主页</a>>
                                <a href='__URL__/index' class="nowpositionhref">后台管理</a>>
                                <a href='__URL__/choose1' class="nowpositionhref">测试管理</a>>
                                <a href='__URL__/testdetail' class="nowpositionhref">试题管理</a>>
                                <a href="">开始测试</a>
							</p>
                          </div>

						  <div id='result'></div>
                            <form id='form2' method="post" action="__URL__/finishtest" >	
                                <table  width="100%"  class="table table-striped table-bordered table-condensed">
                                    <tr>
                                    <?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): ++$i;$mod = ($i % 2 )?><input type="hidden" name="id" value=<?php echo ($vo["id"]); ?>>
                                        <input type="hidden" name="tno" value=<?php echo ($tno); ?>>
                                        <input type="hidden" name="courseid" value=<?php echo ($courseid); ?>>
                                        <th  style="width:50%" >试卷名称：<?php echo ($vo["name"]); ?></th>				
                                        <th style="width:50%">所属课程：<?php echo ($vo["cname"]); ?></th><?php endforeach; endif; else: echo "" ;endif; ?>					
                                    </tr>
                                    <tr>
                                    	<td></td>
                                        <td><input type="submit" class="btn btn-success pull-right"  style="width:80px;" value="收卷"></td>
                                    </tr>	
                                </table>
                            </form>
                            <table width="100%"  class="table table-striped table-bordered table-condensed" >
                            	<thead>
                                	<tr>
                                    	<th>姓名</th>
                                        <th>测试状态</th>
                                    </tr>
                                </thead>
                                <?php if(is_array($list1)): $i = 0; $__LIST__ = $list1;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): ++$i;$mod = ($i % 2 )?><tr>
                                        <input type="hidden" name="id" value=<?php echo ($vo["id"]); ?>>
                                        <td style="width:50%" ><?php echo ($vo["name"]); ?>:</td>	
                                        <td style="width:50%"><?php echo ($vo["status"]); ?></td>	
                                    </tr><?php endforeach; endif; else: echo "" ;endif; ?>					
                             </table>
		</div>
        </div>
		
	</div>

</body>
</html>